const Application = require('./koa/application')

let app = new Application()

app.use(async (ctx, next) => {
  ctx.body = '1'
  next()
  ctx.body += '2'
}).use(async (ctx, next) => {
  ctx.body += '3'
  next()
  ctx.body +=  '4'
})
app.listen(3000, () => {
  console.log('server running on 3000')
})
